raar.graphics
Class RAGCache

java.lang.Object
  extended by raar.graphics.RAGCache

public class RAGCache
extends java.lang.Object

Caches all the graphics for the user interfaces, such as process maps and shapes for agents. Creates a default representation whenever a get() is called but there is no shape present yet.

Contains incomplete JavaDoc documentation, not really interesting.


Field Summary
static RAGCache cache
          The globally available cache instance.
static java.awt.Color DEFAULT_AGENT_COLOR
           
static java.awt.Color DEFAULT_TRACE_COLOR
           
 
Constructor Summary
RAGCache()
           
 
Method Summary
 java.awt.Color getAgentColor(RAAgent ag)
           
 RAGAgentShape getAgentShape(RAAgent ag)
           
 RAGAgentTrace getAgentTrace(RAAgent ag)
           
 java.awt.Color getAgentTraceColor(RAAgent ag)
           
 RAGProcessMap getProcessMap(RAAgent ag)
           
 void setAgentColor(RAAgent ag, java.awt.Color c)
           
 void setAgentShape(RAAgent ag, RAGAgentShape sh)
           
 void setAgentTrace(RAAgent ag, RAGAgentTrace t)
           
 void setAgentTraceColor(RAAgent ag, java.awt.Color c)
           
 void setProcessMap(RAAgent ag, RAGProcessMap pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

public static final RAGCache cache
The globally available cache instance.


DEFAULT_AGENT_COLOR

public static final java.awt.Color DEFAULT_AGENT_COLOR

DEFAULT_TRACE_COLOR

public static final java.awt.Color DEFAULT_TRACE_COLOR
Constructor Detail

RAGCache

public RAGCache()
Method Detail

setProcessMap

public void setProcessMap(RAAgent ag,
                          RAGProcessMap pm)

getProcessMap

public RAGProcessMap getProcessMap(RAAgent ag)

setAgentShape

public void setAgentShape(RAAgent ag,
                          RAGAgentShape sh)

getAgentShape

public RAGAgentShape getAgentShape(RAAgent ag)

setAgentColor

public void setAgentColor(RAAgent ag,
                          java.awt.Color c)

getAgentColor

public java.awt.Color getAgentColor(RAAgent ag)

setAgentTraceColor

public void setAgentTraceColor(RAAgent ag,
                               java.awt.Color c)

getAgentTraceColor

public java.awt.Color getAgentTraceColor(RAAgent ag)

setAgentTrace

public void setAgentTrace(RAAgent ag,
                          RAGAgentTrace t)

getAgentTrace

public RAGAgentTrace getAgentTrace(RAAgent ag)